package constant

import (
	"sync"
	"time"
)

const (
	// 测试环境地址
	TestHisUrl = "http://172.168.1.28/csp/hsb/DHC.Published.PUB0003.BS.PUB0003.CLS"
	// 正式环境地址 172.168.1.50 172.168.1.28
	//172.168.1.134:1443
	//118.114.246.220:11455
	TestURL = "https://10.0.1.15:11346/csp/hsb/DHC.Published.WeiXinSyncService.BS.WeiXinSyncService.CLS"

	TestOlhUrl = "http://172.168.1.46/rest/OnLineHospital/REY/"

	TestZGSFUrl = "http://172.168.1.46/rest/ONLINEHOSPITAL/PDJH/"

	//ZYQDUrl = "http://172.168.1.46/rest/OnLineHospital/REY/"
	ZYQDUrl = ""

	// 卡管中心地址

	HospitalId   = "CDGW"
	ExtUserID    = "WeChat"
	PayModeCode  = "JHZF"
	UserCode     = "WeChat"
	UserID       = "WeChat"
	PatientType  = "01"
	CardTypeCode = "SCEHC"
	//
	CardCenterAppId     = "fbb60a68e8c7490da216c9eeddf09abd"
	CardCenterPubKey    = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE3aYT3JoOMWFIEu5R2OL6lePcvZWmizuGWPqH11UR0oVvBuQk7zt6Qaw7uA2SOWsDO9DcFH%2Boy%2F8F4XG%2FQyTx%2BQ%3D%3D"
	CardCenterAppSecret = "1e3a87a1a131416b8c41c9d45bf48dcf"

	CardCenterPubKey1 = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE3aYT3JoOMWFIEu5R2OL6lePcvZWmizuGWPqH11UR0oVvBuQk7zt6Qaw7uA2SOWsDO9DcFH%2Boy%2F8F4XG%2FQyTx%2BQ%3D%3D"

	CardCenterAppIdTest     = "71bdb32cd24e40a6966b40b044cf063c"
	CardCenterPubKeyTest    = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEKNcngjKpeeMwl93LYSWudTIJpcwAi9DjU3ymCh0qbcVUgI97S997zTMtgiGaa/4qKbeShmHA1eZMQANpu4Wt4A=="
	CardCenterAppSecretTest = "477f4925f5fd45478a87ddbb4d3bd150"

	MerchantId     = 7
	MerchantIdBAKD = 10
	PayWay         = "pay_way"

	OcrRestUrl      = "https://aip.baidubce.com/rest/2.0/ocr/v1/idcard"
	OcrOauthUrl     = "https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials"
	OcrClientId     = "A9t6WrCUR6Klw6Z0GnVn3ZUZ"
	OcrClientSecret = "0nClg2spAi2GArMBZyL07IcwI7mRqgRN"

	CryptoKey = "A23B2C544DEF2022"

	YKTDataSecret = "TfTvdFXsHzDABsRE"

	TianfuUrl = "/citizen-api/getUserInfo.do?token=${query.token}&dkey=c450829886&dcode=EFGT49DFMEG3T2U&hcode=450829886"
)

var OcrTokenExpireDate time.Time
var OcrToken string

var RecordSnMap sync.Map

var JwtSecret = []byte("merchant-hzd-2025!!")
